extends texmath

priority 1000

snippet head  "header of markdown" b
---
title: ${1:title}
author: ${2:author}
date: ${3:date}
---
endsnippet

snippet today "Date"
`!p
from datetime import datetime
if not snip.c:
	snip.rv = datetime.now()
`
endsnippet

snippet mk "inline math" iA
 \(${1:inline math}\) $0
endsnippet

snippet align "align" iA
\[
	\begin{align}
		${1:align environment}
	\end{align}
\]

$0
endsnippet

snippet box "Box"
`!p snip.rv = '┌' + '─' * (len(t[1]) + 2) + '┐'`
│ $1 │
`!p snip.rv = '└' + '─' * (len(t[1]) + 2) + '┘'`
$0
endsnippet

snippet wow
${1:Text}`!p snip.rv = (75-2*len(t[1]))*' '+t[1].upper()`
endsnippet

snippet '\\f\$' "inline formula" riA
 \f$${1:inline formula}\f$ $0
endsnippet

snippet '\\f\[' "display formula" rA
\f[
	${1:display formula}
\f]
$0
endsnippet
